Release 10.1A: OpenEdge Development:
Progress 4GL Reference
INDEX function
Returns an integer that indicates the position of the target string within the source string.
Syntax
sourceA CHARACTER or LONGCHAR expression.
targetA CHARACTER or LONGCHAR expression whose position you want to locate in
source. Iftargetdoes not exist withinsource, INDEX returns a 0.startingAn integer that specifies at which left-most position in the string to start the search. For example, INDEX("abcdefabcdef","abc",6) returns 7.
ExamplesFor this example, you must enter 1, 2, 3, 4, or 5. The INDEX function checks if the digit exists in the string "12345".
This procedure also uses the
startingoption:
Notes
See also
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |